package com.travel.travelServer.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.travel.travelServer.utils.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;


/**
 * (Order)表实体类
 *
 * @author makejava
 * @since 2024-03-01 15:39:17
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class TabOrder extends BaseEntity<TabOrder> {
    //用户id
    @JsonFormat(shape=JsonFormat.Shape.STRING)
    private Long userId;
    //总金额
    private String totalPrice;
    //状态
    private Integer status;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private List<Car> list;

    @TableField(exist = false)
    private List<OrderFruit> orderFruits;
}

